﻿@model Hope.Gallery.ViewModels.IndexModel
@{
    ViewBag.Title = "Albume";
}

<br />
<br />
<br />
<h1>Albume</h1>

<table class="condensed-table">
    <thead>
        <tr>
            <th></th>
            <th>Titlu</th>
            <th>Descriere</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model.Albums)
        {
            <tr>
                <th>
                    <a href="@Url.Action("albumDetails", "home", new { id = @item.Id })" class="btn small primary">View</a>
                </th>
                <td>@item.Title</td>
                <td>@item.Description</td>
            </tr> 
        }
    </tbody>
</table>
